package a.h;

import javax.swing.*;
import java.awt.*;

class fb
  extends bb
{
  private JComponent d;
  
  fb(dc paramdc, gb paramgb)
  {
    super(paramdc.h());
    String str = paramdc.e();
    int i = paramdc.h();
    int j = 0;
    do
    {
      if (j >= i) {
        break;
      }
      kd localkd = paramdc.b(j);
      localkd.a(kd.a, str);
      j++;
      if ((k == 0) && (bool)) {
        return;
      }
    } while (!bool);
    this.d = a(paramdc, paramgb);
    if (k == 0) {
      this.d.putClientProperty("DefaultEditor.editor", this);
    }
  }
  
  public JComponent f()
  {
    return this.d;
  }
  
  void a(boolean paramBoolean)
  {
    a(paramBoolean, this);
  }
  
  void b(boolean paramBoolean)
  {
    c(paramBoolean, this);
  }
  
  private JComponent a(dc paramdc, gb paramgb)
  {
    int k = ec.t;
    boolean bool = ec.s;
    int i = paramdc.h();
    Object localObject3;
    if ((k != 0) || ((i == 1) && (paramdc.b(0).a().length() == 0)))
    {
      localObject1 = paramgb.a(paramdc.b(0));
      a((ib)localObject1);
      localObject2 = ((ib)localObject1).f();
      localObject3 = ((JComponent)localObject2).getPreferredSize();
      if (k == 0)
      {
        if (((Dimension)localObject3).width < paramdc.u)
        {
          ((Dimension)localObject3).width = paramdc.u;
          ((JComponent)localObject2).setPreferredSize((Dimension)localObject3);
        }
        ((JComponent)localObject2).setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
      }
      return localObject2;
    }
    Object localObject1 = paramgb.a();
    Object localObject2 = new JTabbedPane();
    ((JTabbedPane)localObject2).setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    int j = 0;
    do
    {
      if (j >= i) {
        break;
      }
      localObject3 = paramdc.b(j);
      ib localib = paramgb.a((kd)localObject3);
      a(localib);
      JComponent localJComponent = localib.f();
      Dimension localDimension = localJComponent.getPreferredSize();
      if (k == 0)
      {
        if (localDimension.width < paramdc.u)
        {
          localDimension.width = paramdc.u;
          localJComponent.setPreferredSize(localDimension);
        }
        ((JTabbedPane)localObject2).add(nb.a((kd)localObject3, (ob)localObject1), localJComponent);
        j++;
      }
    } while (!bool);
    return localObject2;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.fb

 * JD-Core Version:    0.7.0.1

 */